{% extends 'layout.html' %}

{% block content %}
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"> {{ title }}</h3>
            </div>
            <div class="panel-body">

                <form method="post" novalidate>
                    {% csrf_token %}
                    {% for row_obj in form %}
                        <div class="form-group">
                            <label>{{ row_obj.label }}</label>
                            {{ row_obj }}
                            <span style="color: red">{{ row_obj.errors }}</span>
                        </div>
                    {% endfor %}
                    <button type="submit" class="btn btn-primary">提交</button>
                </form>
            </div>
        </div>
    </div>
{% endblock %}